import 'package:get/get.dart';

/// 情绪Emoji控制器
class MoodEmojiController extends GetxController {
  /// 当前显示的emoji
  RxString currentEmoji = ''.obs;
  
  /// 情绪记录的时间
  Rx<DateTime?> moodTime = Rx<DateTime?>(null);
  
  /// 记录情绪emoji
  void recordMoodEmoji(String emoji) {
    currentEmoji.value = emoji;
    moodTime.value = DateTime.now();
  }
  
  /// 清除情绪emoji
  void clearMoodEmoji() {
    currentEmoji.value = '';
    moodTime.value = null;
  }
}
